#include "ScnsIwdg.c.h"

#if defined(SCNS_IWDG_ENABLE)&&SCNS_IWDG_ENABLE==1

ScnsStatus scnsBspIwdgInit(void)
{
    IWDG_WriteAccessCmd(IWDG_WriteAccess_Enable);
    IWDG_SetPrescaler(IWDG_Prescaler_8);
    IWDG_SetReload(0X0FFF);
    IWDG_ReloadCounter();
    IWDG_Enable();
    return SCNS_STATUS_OK;
}

void scnsBspIwdgFeed(void)
{
    IWDG_ReloadCounter();
}

#endif
